﻿@using giaoxuhaison.Models;
@{
    ViewBag.Title = "CategoryGroup";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src='@Url.Content("~/Scripts/jquery-1.2.3.pack.js")' type="text/javascript"></script>
<script type="text/javascript" src='@Url.Content("~/Scripts/News/thickbox.js")'></script>
<link rel="stylesheet" href="@Url.Content("~/Content/thickbox.css")" type="text/css" media="screen" />


@{
    var lstItem = (List<ImagesVideosAll>)ViewData["lstImg"];
    var lstFiles = (List<string>)ViewData["lstFiles"];
    var lstOtherImg = (List<ImagesVideosAll>)ViewData["lstOtherImg"];        
}

<div class="HappyGroupNews">    
    <!--load tin moi -->
    @if (lstItem != null && lstItem.Count != 0)
    {
        //load hinh anh theo chu de
        <div class="HappyNewsGrpTitle">        
            <b >@lstItem[0].Subject.ToUpper()</b> @*<a href='@Url.Action("CategoryDetail", "Categories", new { CategoryID = item.CategoryID, GroupID = item.GroupID })'>@item.Subject</a>        *@
        </div>        
        <div class="HappyGrpNews">
            <div style="margin-left:5px;">
                @if(lstFiles != null && lstFiles.Count >0)
                {
                    foreach (var item in lstFiles)
                    {
                        <div class="ImgDetail" align="center">
                            <a href="@Url.Content(item.ToString())" title="@lstItem[0].Subject" class="thickbox" rel="gallery-plants" style="z-index:20000;"><img src="@Url.Content(item.ToString())" style="width:260px; max-width: 260px; height:220px; max-height:220px;" alt="" /></a>                 
                        </div>                  
                    }
                }
                @*<div class="ImgDetail" align="center">
                    <a href="@Url.Content("~/Images/GXHS/12_2014/plant2.jpg")"  class="thickbox" rel="gallery-plants" ><img src="@Url.Content("~/Images/GXHS/12_2014/plant2.jpg")" style="width:260px; max-width: 260px; height:220px; max-height:220px;" alt="Plant 1" /></a>                 
                </div>                  
                <div class="ImgDetail" align="center">
                    <a href="@Url.Content("~/Images/GXHS/12_2014/plant3.jpg")"  class="thickbox" rel="gallery-plants" ><img src="@Url.Content("~/Images/GXHS/12_2014/plant3.jpg")" style="width:260px; max-width: 260px; height:220px; max-height:220px;" alt="Plant 1" /></a>                 
                </div>                  *@
            </div>
        </div>          
    }
    else
    {
        <div class="NewsGrpTitle">        
            <a href="#">Hình ảnh</a>
        </div>        
        <div class="DetailGrpNews">
            <div id="LinkGroupNews">
                <div class="NewsGrpContent">
                    <span style="padding-left: 5px;color:Red;">Danh mục đang cập nhật. Xin vui lòng quay lại sau!</span>
                </div>
            </div>
        </div>        
    }
</div>

<div class="RightGroupNews">
    <div class="RightGroupTitle">
        @Html.Label("TIN/ BÀI MỚI", new { @class = "lblLeftTitle" })                        
    </div>
    <div class="RightGroupContent">
        <!--Hien thi phan loi Chua moi-->        
        <!--Hien thi tin tuc moi cua group-->
        @Html.Action("IndexRightNews", "News")
        @*@Html.Action("NewRightNews", "News")*@
    </div>  
    <div class="RightGroupTitle">
        @Html.Label("SUY NIỆM LỜI CHÚA", new { @class = "lblLeftTitle" })                        
    </div>
    <div class="RightGroupContent">
        <!--Hien thi phan loi Chua moi-->        
        <!--Hien thi tin tuc moi cua group-->
        <!-- load phan thong bao moi -->
        <!--Hien thi phan loi Chua moi-->
        @Html.Action("NewGodTitle", "GodTitle")
    </div> 
</div>

<div class="FootGroupNews">    
    <!--load tin moi -->
    <div class="DetailNewsGrpTitle">        
        HÌNH ẢNH SINH HOẠT GIÁO XỨ
    </div>        
    <div class="DetailContentNews">
        <div id="FootDetailNews">
            @if (lstOtherImg.Count > 0 && lstOtherImg != null)
            {
                foreach (var item in lstOtherImg)
                {
                    <div class="FootGrpTitle"><a href='@Url.Action("ImgDetail", "Categories", new { ImgVideoID = item.ImgVideoID, GroupID = item.GroupID })'><i>>> @item.Subject</i></a></div>                
                }
            }                                
        </div>
        <br />
        <br />
        <div id="DetailBack">
            <!--Quay ve dau trang -->
            <a href="#top">
                <img src='@Url.Content("~/Images/News/back_top_yellow.jpg")' align="absmiddle" />
                Về đầu trang</a>
        </div> 
    </div>
</div>
